package com.nuaa.qianru.service;

import com.nuaa.qianru.dao.TpDao;
import com.nuaa.qianru.model.AlarmInfo;
import com.nuaa.qianru.model.HealthParam;
import com.nuaa.qianru.model.Tp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TpService {
    @Autowired
    TpDao tpDao;

    public List<Tp> getTps(){
        return tpDao.selectTps();
    }

    public List<HealthParam> getHealth1() {
        return tpDao.selectHealth1();
    }
    public List<HealthParam> getHealth2() {
        return tpDao.selectHealth2();
    }
    public List<HealthParam> getHealth3() {
        return tpDao.selectHealth3();
    }
    public List<HealthParam> getHealth4() {
        return tpDao.selectHealth4();
    }

    public List<AlarmInfo> getAlarm1(){
        return tpDao.selectAlarm1();
    }
    public List<AlarmInfo> getAlarm2(){
        return tpDao.selectAlarm2();
    }
    public List<AlarmInfo> getAlarm3(){
        return tpDao.selectAlarm3();
    }
    public List<AlarmInfo> getAlarm4(){
        return tpDao.selectAlarm4();
    }
}
